import Fetch  from "../utils/fetch"
import Request  from "../utils/request"


// 统一接口文件配置

// 首页轮播图接口    axios实现

export  const   banner =  () => Fetch.get("/banner")
// export  const   banner =  () => Request({
//     url:"/api/banner",
//     headers:{
//         DeviceType: "H5"
//     }
// })

// 首页接口
export  const   cartList =  () => Fetch.get("/recommend/appIndex")
// export  const   cartList =  () => Request({
//    url: "/api/recommend/appIndex",

// })

// 课程详情接口
export  const   courceId =  (data) => Fetch.get(`/courseInfo/basis_id=${data}`)

// 老师详情接口
export  const   teacherId =  (data) => Fetch.get(`/teacher/${data}`)



// 老师详情接口   ?page=1&limit=10
export const coursebasis = (data) => Fetch.get("/courseBasis", data)
//特色课 分类
export const courseify = () => Request({
    url: '/api/courseClassify',
    method:"GET"
})
//登录接口
export const login = (data) => Fetch.post("/login", data)
//获取验证码接口
export const SmsVerification = (data) => Fetch.post("/smsCode", data)
//获取密码接口
export const secondPassword = (data) => Fetch.post("/password", data)
//获取用户信息
export const userInfo = () => Fetch.get("/userInfo")
// 修改用户信息
export const xgUser = (data) => Fetch.put("/user", data)
// 收藏列表
export const collections = (data) => Fetch.get('/collect', data)
// 我的学习
export const myStudy = (data) => Fetch.get('/collect', data)
// 关注讲师接口
export const guan = (id) => Fetch.get(`/teacher/collect/${id}`)






